<el-form ref="form" :model="form" :rules="rules" label-width="140px">
    <el-row :gutter="10">
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="预测单日期"  prop="GWBSDOCDATE">
                <el-date-picker
                        v-model="form.GWBSDOCDATE"
                        type="date"
                        value-format="yyyy-MM-dd"
                        style="width:100%;">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户编号">
                <el-input v-model="form.GWBS002" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwbs002" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="客户名称">
                <el-input v-model="form.GWAKL003"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="经销商编号">
                <el-input v-model="form.GWBS009" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwbs009" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="经销商名称">
                <el-input v-model="form.GWAKL003_"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="商机编号">
                <el-input v-model="form.GWBS001" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwbs001" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="商机说明">
                <el-input v-model="form.GWBGL003"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="行业">
                <el-input v-model="form.GWAGL003" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwagl003" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="省份">
                <el-input v-model="form.GWADL004" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwadl003" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="产品系列">
                <el-input v-model="form.GWAOL003" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwaol003" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="品号">
                <el-input v-model="form.GWBS003" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwbs003" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="品名">
                <el-input v-model="form.GWAML003"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="规格">
                <el-input v-model="form.GWAML004"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="单位">
                <el-input v-model="form.GWABL003" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwabl003" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="数量" prop="GWBS005">
                <el-input v-model.number="form.GWBS005"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="单价" prop="GWBS006">
                <el-input v-model.number="form.GWBS006"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="金额" prop="GWBS007">
                <el-input v-model.number="form.GWBS007"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="回款年度" prop="GWBS012">
                <el-date-picker
                        v-model="form.GWBS012"
                        type="year"
                        value-format="yyyy"
                        style="width:100%;">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="回款月份" prop="GWBS013">
                <el-date-picker
                        v-model="form.GWBS013"
                        type="month"
                        format="MM"
                        value-format="MM"
                        style="width:100%;">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="回款周">
                <el-input v-model="form.GWBS014"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="成交几率">
                <el-input v-model="form.GWBS008"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="业务员">
                <el-input v-model="form.GWBS010_NAME_" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwbs010" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="大区/分公司">
                <el-input v-model="form.GWBS018_NAME_" clearable readonly>
                    <i class="el-icon-search el-input__icon" @click="openGwbs018" slot="suffix"></i>
                </el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="已回款金额">
                <el-input v-model="form.GWBS019"></el-input>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="回款日期">
                <el-date-picker
                        v-model="form.GWBS020"
                        type="date"
                        value-format="yyyy-MM-dd"
                        style="width:100%;">
                </el-date-picker>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="8" :md="8" :lg="8" :xl="8">
            <el-form-item label="有效否" prop="GWBSACTI">
                <el-select v-model="form.GWBSACTI" clearable>
                    <el-option v-for="item in selectOptions.sys_y_n" :label="item.value" :value="item.code"></el-option>
                </el-select>
            </el-form-item>
        </el-col>
        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.GWBS021"></el-input>
            </el-form-item>
        </el-col>

        <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" style="text-align: right">
            <el-button icon="icon iconfont icon-23" size="mini" @click="cancel">关闭</el-button>
            <el-button type="warning" icon="icon iconfont icon-21" size="mini" @click="sure" :disabled="isDetail">保存</el-button>
        </el-col>
    </el-row>
</el-form>
<script>
    require(["pc/crm/gwat550_edit"], $.noop);
</script>